package com.sz.designpattern.behavior11.mediator;

//买房者
public class Purchaser extends Person{

    public Purchaser(HouseMediator mediator) {
        super(mediator);
    }

    @Override
    public void send(String msg) {
        System.out.println("Purchaser.send "+msg);
        mediator.notice(this,msg);
    }

    @Override
    public void getNotice(String msg) {
        System.out.println("Purchaser.getNotice "+msg);
    }
}
